package com.jic.interaction.JDVOP.service.impl;

import com.jic.interaction.JDVOP.model.enyity.Payment;
import com.jic.interaction.JDVOP.model.enyity.PaymentDetail;
import com.jic.interaction.JDVOP.model.enyity.order.CancelOrder;
import com.jic.interaction.JDVOP.model.vo.response.PaymentDetailResponse;
import com.jic.interaction.JDVOP.model.vo.response.PaymentResponse;
import com.jic.interaction.JDVOP.service.PaymentService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * @ClassName PaymentServiceImpl
 * TODO
 * @Description
 * @Author chenhongfeng
 * @Date 2020/11/16 14:47
 * @Version 1.0
 **/
@Service
@Slf4j
public class PaymentServiceImpl implements PaymentService {
    @Value("${route.JDVOP}")
    private String url;

    /*
     *TODO
     *ClassName PaymentServiceImpl
     *@Author chenhongfeng
     *@Package com.jic.interaction.JDVOP.service.impl
     *@Description 查询余额      查询金采和预存款余额的余额。
     *@Date 17:41 2020/11/16
     *@Param
     *@return
     *@Version:1.0
     **/
    @Override
    public PaymentResponse selectUnionBalance(Payment request) {
        String url=this.url+"api/price/getUnionBalance";
        return null;
    }
    /*
     *TODO
     *ClassName PaymentServiceImpl
     *@Author chenhongfeng
     *@Package com.jic.interaction.JDVOP.service.impl
     *@Description 查询余额变动明细     仅支持预存款余额明细查询，不支持金采余额明细查询。
     *@Date 17:41 2020/11/16
     *@Param
     *@return
     *@Version:1.0
     **/
    @Override
    public PaymentDetailResponse selectBalanceDetail(PaymentDetail request) {
        String url=this.url+"api/price/getBalanceDetail";
        return null;
    }
    /*
     *TODO
     *ClassName PaymentServiceImpl
     *@Author chenhongfeng
     *@Package com.jic.interaction.JDVOP.service.impl
     *@Description  发起支付
     *@Date 14:20 2020/11/21
     *@Param
     *@return
     *@Version:1.0
     **/
    @Override
    public String selectInitiatePayment(CancelOrder request) {
        String url=this.url+"api/order/doPay";
        return null;
    }
}
